﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
using Aierp.Utility;
using Aierp.Utility.Data;
using Chloe.Entity;

namespace Aierp.SystemEntities.System
{
    [TableName("Sys_NavButtons")]
    [Description("菜单按钮关系")]
    public class Sys_NavButtons
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Column(IsPrimaryKey = true)]
        [AutoIncrement]
        public int KeyId { get; set; }

        /// <summary>
        /// 菜单ID
        /// </summary>
        [Description("菜单ID")]
        public int NavId { get; set; }

        /// <summary>
        /// 按钮ID
        /// </summary>
        [Description("按钮ID")]
        public int ButtonId { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Description("排序")]
        public int Sortnum { get; set; }
       

       public override string ToString()
        {
            return JSONhelper.ToJson(this);
        }
    }
}
